package com.kgame5.xtank3d.effect.myemitters {
import kgame5.k3d.core.obj3d.node3d.Node3D;
import kgame5.kmath.MathDG;

import com.kgame5.xtank3d.effect.MyEmitter;
import com.kgame5.xtank3d.resource.ResourceManagerX;

/**
 * @author kk
 */
public class MissileSmokeEmitter extends MyEmitter{
	public function MissileSmokeEmitter() {
		//type是1和2,1是光球，2是导弹烟雾
		var md:Node3D=ResourceManagerX.getInstance().getFlySmoke(2);
		
		md.life=16;//MathDG.random(6, 8);
		
		md.alphaSpeed=-1/md.life;
		
		var scaleSpeed:Number=0.05;
		md.ti.hardVO.v3d_sv.fill(scaleSpeed,scaleSpeed,scaleSpeed);
		
		//旋转
		md.rotY=MathDG.random(0,360);
		
		md_g.addChild(md);
	}
}
}
